package com.ssn.decorator.battercake;

public class Client {
    public static void main(String[] args) {
        IBatterCake batterCake = new BatterCake();
        batterCake = new EggDecorator(batterCake);
        batterCake.getDesc();
        System.out.println("现在的价格是" + batterCake.cost());
        batterCake = new MealDecorator(batterCake);
        batterCake.getDesc();
        System.out.println("现在的价格是" + batterCake.cost());
    }
}
